package ftp;

import java.io.File;

public class Ftp {

	public static void main(String[] args) {
		File f = new File("/ftp");
		System.out.println(f.list().toString());
		for(String s : f.list()){
			System.out.println(s);
		}
		
		File f1 = new File("/ftp/test1.txt");
		if(f1.exists()){
			f1.delete();
		}
		
		System.out.println(f.list().toString());
		for(String s : f.list()){
			System.out.println(s);
		}
		
	}

}
